/**
 * 
 */
package me.myachievements.web.tag;

import me.myachievements.persistence.goal.Goal;
import me.myachievements.persistence.goal.GoalPersistenceManager;
import me.myachievements.persistence.tag.Tag;
import me.myachievements.persistence.tag.TagPersistenceManager;

import org.apache.wicket.markup.html.form.Button;
import org.apache.wicket.markup.html.form.ChoiceRenderer;
import org.apache.wicket.markup.html.form.ListMultipleChoice;
import org.apache.wicket.markup.html.panel.Panel;
import org.apache.wicket.model.CompoundPropertyModel;
import org.apache.wicket.model.IModel;
import org.apache.wicket.spring.injection.annot.SpringBean;

/**
 * @author besseym
 *
 */
public class GoalTagsSelectorPanel extends Panel {
	
	@SpringBean(name="goalPersistenceManager")
	protected GoalPersistenceManager goalPersistenceManager;
	
	@SpringBean(name="tagPersistenceManager")
	protected TagPersistenceManager tagPersistanceManager;

	/**
	 * @param id
	 */
	public GoalTagsSelectorPanel(String id, final Goal goal) {
		super(id);
		
		add(new GoalTagAddForm("goal_tag_add_form", goal));
		add(new GoalTagRemoveForm("goal_tag_remove_form", goal));

	}
}
